#include <iostream>
#include <pthread.h>
#include<unistd.h>
using namespace std;

void *Print(void *args)
{
    while (true)
    {
        cout << "thread create" << endl;
        sleep(1);
    }
}
int main()
{
    pthread_t tid;
    pthread_create(&tid, nullptr, Print, nullptr);

    while (true)
    {
        cout << "man thread" << endl;
        sleep(1);
    }
    pthread_join(tid, nullptr);

    return 0;
}